package sv.ues.fia.clases;

public class MyDateFormat {
	
	public static String formatDate(int year, int month, int day){
		
		String result;
		month = month + 1;
		result=year+"-"; // 2013-
		if(month<10){
			result=result+"0"+month+"-"; // 2013-09-
		}else{
			result=result+month+"-";  //2013-11-
		}
		
		if(day<10){
			result=result+"0"+day; //2013-09-05
		}else{
			result=result+day; //2013-11-25
		}
		
		return result;
	}

}
